/*
 * @Author: yangzonglong
 * @Date: 2021-03-17 13:44:00
 * @version: v1.0.0
 * @Descripttion: 获取 context store
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-03-25 15:05:37
 * @Auditor: 
 */
import { useContext } from 'react'
import context from '../context'
import { StoreProps } from '../interface'

/**
 * fd reducer 数据
 * @returns {object} { state, dispatch }
 */
const useFdStore = () => {
  const fd: StoreProps = useContext(context);
  return fd
}

export default useFdStore;